<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/1
 * Time: 11:22
 */

namespace app\flower\model;
use think\Model;

class FlowerGuestpinglunModel extends Model
{
    /**
     * @param $content
     * @return string
     * 将content中的内容实体话
     */
   protected function getContentAttr($content){
        return htmlspecialchars_decode($content);
   }
    protected function getImgAttr($img){
        if(!empty($img)){
            $imgs = cmf_get_image_url($img);
        }else{
            $imgs = '';
        }
        return $imgs;
    }
    protected function getHeadimgAttr($headimg){
        if(!empty($headimg)){
            $imgs = cmf_get_image_url($headimg);
        }else{
            $imgs = '';
        }
        return $imgs;
    }
}